package com.delaphone.fadmin.service;

import com.delaphone.flocash.model.FUser;
import java.util.Date;
import java.util.List;

/**
 *
 * @author dongtv
 */
public interface CustomerService {

    /**
     * find Customer
     * @param startDate
     * @param endDate
     * @param email
     * @param firstName
     * @param lastName
     * @param city
     * @param country
     * @param pageSize
     * @param pageNumber
     * @return 
     */
    public List<FUser> findCustomers(Date start, Date end, String email, String firstName, String lastName, String city, String country, int pageSize, int pageNumber);

    /**
     * find Customers number
     * @param startDate
     * @param endDate
     * @param email
     * @param firstName
     * @param lastName
     * @param city
     * @param country
     * @return 
     */
    public long findCustomersRowCount(Date startDate, Date endDate, String email, String firstName, String lastName, String city, String country);

    /**
     * Update Customer information
     * @param newObj
     * @return status
     */
    public boolean updateCustomer(FUser newObj);
}
